import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App'
import {BrowserRouter as Router} from 'react-router-dom'
// 所有来自于react-router-dom的组件,必须被Router（BrowserRouter as Router）所包裹
ReactDOM.createRoot(document.querySelector('#root')).render((<Router><App/></Router>))